<?php

include'../classes/db.php';

$x=new DbConnect();
$con=$x->getConnection();

$reg=$_GET['regno'];
$time_now=mktime(date('H')+5,date('i')+30,date('s'),date('m'),date('d'),date('Y'));
$year=date('Y',$time_now);

$result=mysql_query("select f_name,l_name from student where reg_no='$reg' and year(j_date)='$year'",$con);
$num=mysql_num_rows($result);
	if($num==0)
		{
			echo"false";
		}
	else
		{
			while($row=mysql_fetch_array($result))
				{
					$fname=$row['f_name'];
					$lname=$row['l_name'];
				}    
			echo"NAME- "."$fname "." $lname";
		}
?>